#include <stdio.h>
#include <stdlib.h>


#if 0
typedef  - > typerename 只能对已有类型取别名
1. 用现有类型生成变量
2. 在变量定义之前加 typedef
3. 将定义的变量换成你要的别名



typedef 构成的 C 语言语句参与编译
#define 都成的宏，在预处理阶段处理完毕
#define N 6
#define DINT int
#endif

malloc(size_t);

int main()
{
    char *p,q;
    printf("sizeof(p) = %d sizeof(q) = %d\n",sizeof (p),sizeof (q));
    typedef char *pChar ;
    pChar a,b;
    printf("sizeof(a) = %d sizeof(b) = %d\n",sizeof (a),sizeof (b));
#define DpChar char *
    DpChar m,n;
    printf("sizeof(m) = %d sizeof(n) = %d\n",sizeof (m),sizeof (n));
}




#define DINT int

int main2()
{
    DINT a,b;
    printf("sizeof(DINT) = %d sizeof(a) = %d\n",sizeof (DINT),sizeof (a));
    return 0;
}

int main1()
{
    typedef int INT ;
    INT a,b,c,d;
    printf("sizeof(int) = %d sizeof(INT) = %d\n",sizeof (int),sizeof (INT));

//    int array[10];
    typedef int ARRAY[10] ;
    ARRAY arr;
    printf("sizeof(ARRAY) = %d sizeof(arr) = %d\n",sizeof (ARRAY),sizeof (arr));
    for(int i = 0; i < 10; i++)
    {
        arr[i] = i;
        printf("arr[i] = %d\n",arr[i]);
    }
    return 0;
}
